//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类.demo20AND40;

public class demo28 {
    public demo28() {
    }

    public static void main(String[] args) {
        System.out.println(strStr("leetcode", "leetoo"));
    }

    public static int strStr(String haystack, String needle) {
        return (new StringBuilder(haystack)).indexOf(needle);
    }

    public static int strStr2(String haystack, String needle) {
        return haystack.indexOf(needle);
    }
}
